home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 2: Applications / Linux Cubed Series 2 - Applications.iso / editors / emacs / xemacs / xemacs-1.006 / xemacs-1 / lib / xemacs-19.13 / info / xemacs.info-11 < prev    next >
Encoding:
GNU Info File  |  1995-09-01  |  45.7 KB  |  1,055 lines

  1. This is Info file ../../info/xemacs.info, produced by Makeinfo-1.63
  2. from the input file xemacs.texi.
  3.  
  4.    This file documents the XEmacs editor.
  5.  
  6.    Copyright (C) 1985, 1986, 1988 Richard M. Stallman.  Copyright (C)
  7. 1991, 1992, 1993, 1994 Lucid, Inc.  Copyright (C) 1993, 1994 Sun
  8. Microsystems, Inc.  Copyright (C) 1995 Amdahl Corporation.
  9.  
  10.    Permission is granted to make and distribute verbatim copies of this
  11. manual provided the copyright notice and this permission notice are
  12. preserved on all copies.
  13.  
  14.    Permission is granted to copy and distribute modified versions of
  15. this manual under the conditions for verbatim copying, provided also
  16. that the sections entitled "The GNU Manifesto", "Distribution" and "GNU
  17. General Public License" are included exactly as in the original, and
  18. provided that the entire resulting derived work is distributed under the
  19. terms of a permission notice identical to this one.
  20.  
  21.    Permission is granted to copy and distribute translations of this
  22. manual into another language, under the above conditions for modified
  23. versions, except that the sections entitled "The GNU Manifesto",
  24. "Distribution" and "GNU General Public License" may be included in a
  25. translation approved by the author instead of in the original English.
  26.  
  27. 
  28. File: xemacs.info,  Node: Loading,  Next: Compiling Libraries,  Prev: Lisp Libraries,  Up: Lisp Libraries
  29.  
  30. Loading Libraries
  31. -----------------
  32.  
  33. `M-x load-file FILE'
  34.      Load the file FILE of Lisp code.
  35.  
  36. `M-x load-library LIBRARY'
  37.      Load the library named LIBRARY.
  38.  
  39. `M-x locate-library LIBRARY &optional NOSUFFIX'
  40.      Show the full path name of Emacs library LIBRARY.
  41.  
  42.    To execute a file of Emacs Lisp, use `M-x load-file'.  This command
  43. reads the file name you provide in the minibuffer, then executes the
  44. contents of that file as Lisp code.  It is not necessary to visit the
  45. file first; in fact, this command reads the file as found on disk, not
  46. the text in an Emacs buffer.
  47.  
  48.    Once a file of Lisp code is installed in the Emacs Lisp library
  49. directories, users can load it using `M-x load-library'.  Programs can
  50. load it by calling `load-library', or with `load', a more primitive
  51. function that is similar but accepts some additional arguments.
  52.  
  53.    `M-x load-library' differs from `M-x load-file' in that it searches
  54. a sequence of directories and tries three file names in each directory.
  55. The three names are: first, the specified name with `.elc' appended;
  56. second, the name with `.el' appended; third, the specified name alone.
  57. A `.elc' file would be the result of compiling the Lisp file into byte
  58. code;  if possible, it is loaded in preference to the Lisp file itself
  59. because the compiled file loads and runs faster.
  60.  
  61.    Because the argument to `load-library' is usually not in itself a
  62. valid file name, file name completion is not available.  In fact, when
  63. using this command, you usually do not know exactly what file name will
  64. be used.
  65.  
  66.    The sequence of directories searched by `M-x load-library' is
  67. specified by the variable `load-path', a list of strings that are
  68. directory names.  The elements of this list may not begin with "`~'",
  69. so you must call `expand-file-name' on them before adding them to the
  70. list.  The default value of the list contains the directory where the
  71. Lisp code for Emacs itself is stored.  If you have libraries of your
  72. own, put them in a single directory and add that directory to
  73. `load-path'.  `nil' in this list stands for the current default
  74. directory, but it is probably not a good idea to put `nil' in the list.
  75. If you start wishing that `nil' were in the list, you should probably
  76. use `M-x load-file' for this case.
  77.  
  78.    The variable is initialized by the EMACSLOADPATH environment
  79. variable. If no value is specified, the variable takes the default value
  80. specified in the file `paths.h' when Emacs was built. If a path isn't
  81. specified in `paths.h', a default value is obtained from the file
  82. system, near the directory in which the Emacs executable resides.
  83.  
  84.    Like `M-x load-library', `M-x locate-library' searches the
  85. directories in `load-path' to find the file that `M-x load-library'
  86. would load.  If the optional second argument NOSUFFIX is non-`nil', the
  87. suffixes `.elc' or `.el' are not added to the specified name LIBRARY
  88. (like calling `load' instead of `load-library').
  89.  
  90.    You often do not have to give any command to load a library, because
  91. the commands defined in the library are set up to "autoload" that
  92. library.  Running any of those commands causes `load' to be called to
  93. load the library; this replaces the autoload definitions with the real
  94. ones from the library.
  95.  
  96.    If autoloading a file does not finish, either because of an error or
  97. because of a `C-g' quit, all function definitions made by the file are
  98. undone automatically.  So are any calls to `provide'.  As a
  99. consequence, the entire file is loaded a second time if you use one of
  100. the autoloadable commands again.  This prevents problems when the
  101. command is no longer autoloading but is working incorrectly because the
  102. file was only partially loaded.  Function definitions are undone only
  103. for autoloading; explicit calls to `load' do not undo anything if
  104. loading is not completed.
  105.  
  106.    The variable `after-load-alist' takes an alist of expressions to be
  107. evaluated when particular files are loaded.  Each element has the form
  108. `(FILENAME forms...)'.  When `load' is run and the filename argument is
  109. FILENAME, the forms in the corresponding element are executed at the
  110. end of loading.
  111.  
  112.    FILENAME must match exactly.  Normally FILENAME is the name of a
  113. library, with no directory specified, since that is how load is
  114. normally called.  An error in `forms' does not undo the load, but it
  115. does prevent execution of the rest of the `forms'.
  116.  
  117. 
  118. File: xemacs.info,  Node: Compiling Libraries,  Next: Mocklisp,  Prev: Loading,  Up: Lisp Libraries
  119.  
  120. Compiling Libraries
  121. -------------------
  122.  
  123.    Emacs Lisp code can be compiled into byte-code which loads faster,
  124. takes up less space when loaded, and executes faster.
  125.  
  126. `M-x batch-byte-compile'
  127.      Run byte-compile-file on the files remaining on the command line.
  128.  
  129. `M-x byte-compile-buffer &optional BUFFER'
  130.      Byte-compile and evaluate contents of BUFFER (default is current
  131.      buffer).
  132.  
  133. `M-x byte-compile-file'
  134.      Compile a file of Lisp code named FILENAME into a file of byte
  135.      code.
  136.  
  137. `M-x byte-compile-and-load-file FILENAME'
  138.      Compile a file of Lisp code named FILENAME into a file of byte
  139.      code and load it.
  140.  
  141. `M-x byte-recompile-directory DIRECTORY'
  142.      Recompile every `.el' file in DIRECTORY that needs recompilation.
  143.  
  144. `M-x disassemble'
  145.      Print disassembled code for OBJECT on (optional) STREAM.
  146.  
  147. `M-x make-obsolete FUNCTION NEW'
  148.      Make the byte-compiler warn that FUNCTION is obsolete and NEW
  149.      should be used instead.
  150.  
  151.    `byte-compile-file' creates a byte-code compiled file from an
  152. Emacs-Lisp source file.  The default argument for this function is the
  153. file visited in the current buffer.  The function reads the specified
  154. file, compiles it into byte code, and writes an output file whose name
  155. is made by appending `c' to the input file name.  Thus, the file
  156. `rmail.el' would be compiled into `rmail.elc'. To compile a file of
  157. Lisp code named FILENAME into a file of byte code and then load it, use
  158. `byte-compile-and-load-file'. To compile and evaluate Lisp code in a
  159. given buffer, use `byte-compile-buffer'.
  160.  
  161.    To recompile all changed Lisp files in a directory, use `M-x
  162. byte-recompile-directory'.  Specify just the directory name as an
  163. argument.  Each `.el' file that has been byte-compiled before is
  164. byte-compiled again if it has changed since the previous compilation.
  165. A numeric argument to this command tells it to offer to compile each
  166. `.el' file that has not been compiled yet.  You must answer `y' or `n'
  167. to each offer.
  168.  
  169.    You can use the function `batch-byte-compile' to invoke Emacs
  170. non-interactively from the shell to do byte compilation.  When you use
  171. this function, the files to be compiled are specified with command-line
  172. arguments.  Use a shell command of the form:
  173.  
  174.      emacs -batch -f batch-byte-compile FILES...
  175.  
  176.    Directory names may also be given as arguments; in that case,
  177. `byte-recompile-directory' is invoked on each such directory.
  178. `batch-byte-compile' uses all remaining command-line arguments as file
  179. or directory names, then kills the Emacs process.
  180.  
  181.    `M-x disassemble' explains the result of byte compilation.  Its
  182. argument is a function name.  It displays the byte-compiled code in a
  183. help window in symbolic form, one instruction per line.  If the
  184. instruction refers to a variable or constant, that is shown, too.
  185.  
  186. 
  187. File: xemacs.info,  Node: Mocklisp,  Prev: Compiling Libraries,  Up: Lisp Libraries
  188.  
  189. Converting Mocklisp to Lisp
  190. ---------------------------
  191.  
  192.    XEmacs can run Mocklisp files by converting them to Emacs Lisp first.
  193. To convert a Mocklisp file, visit it and then type `M-x
  194. convert-mocklisp-buffer'.  Then save the resulting buffer of Lisp file
  195. in a file whose name ends in `.el' and use the new file as a Lisp
  196. library.
  197.  
  198.    You cannot currently byte-compile converted Mocklisp code.  The
  199. reason is that converted Mocklisp code uses some special Lisp features
  200. to deal with Mocklisp's incompatible ideas of how arguments are
  201. evaluated and which values signify "true" or "false".
  202.  
  203. 
  204. File: xemacs.info,  Node: Lisp Eval,  Next: Lisp Debug,  Prev: Lisp Libraries,  Up: Running
  205.  
  206. Evaluating Emacs-Lisp Expressions
  207. =================================
  208.  
  209.    Lisp programs intended to be run in Emacs should be edited in
  210. Emacs-Lisp mode; this will happen automatically for file names ending in
  211. `.el'.  By contrast, Lisp mode itself should be used for editing Lisp
  212. programs intended for other Lisp systems.  Emacs-Lisp mode can be
  213. selected with the command `M-x emacs-lisp-mode'.
  214.  
  215.    For testing of Lisp programs to run in Emacs, it is useful to be able
  216. to evaluate part of the program as it is found in the Emacs buffer.  For
  217. example, if you change the text of a Lisp function definition and then
  218. evaluate the definition, Emacs installs the change for future calls to
  219. the function.  Evaluation of Lisp expressions is also useful in any
  220. kind of editing task for invoking non-interactive functions (functions
  221. that are not commands).
  222.  
  223. `M-ESC'
  224.      Read a Lisp expression in the minibuffer, evaluate it, and print
  225.      the value in the minibuffer (`eval-expression').
  226.  
  227. `C-x C-e'
  228.      Evaluate the Lisp expression before point, and print the value in
  229.      the minibuffer (`eval-last-sexp').
  230.  
  231. `C-M-x'
  232.      Evaluate the defun containing point or after point, and print the
  233.      value in the minibuffer (`eval-defun').
  234.  
  235. `M-x eval-region'
  236.      Evaluate all the Lisp expressions in the region.
  237.  
  238. `M-x eval-current-buffer'
  239.      Evaluate all the Lisp expressions in the buffer.
  240.  
  241.    `M-ESC' (`eval-expression') is the most basic command for evaluating
  242. a Lisp expression interactively.  It reads the expression using the
  243. minibuffer, so you can execute any expression on a buffer regardless of
  244. what the buffer contains.  When evaluation is complete, the current
  245. buffer is once again the buffer that was current when `M-ESC' was typed.
  246.  
  247.    `M-ESC' can easily confuse users, especially on keyboards with
  248. autorepeat, where it can result from holding down the ESC key for too
  249. long.  Therefore, `eval-expression' is normally a disabled command.
  250. Attempting to use this command asks for confirmation and gives you the
  251. option of enabling it; once you enable the command, you are no longer
  252. required to confirm.  *Note Disabling::.
  253.  
  254.    In Emacs-Lisp mode, the key `C-M-x' is bound to the function
  255. `eval-defun', which parses the defun containing point or following point
  256. as a Lisp expression and evaluates it.  The value is printed in the echo
  257. area.  This command is convenient for installing in the Lisp environment
  258. changes that you have just made in the text of a function definition.
  259.  
  260.    The command `C-x C-e' (`eval-last-sexp') performs a similar job but
  261. is available in all major modes, not just Emacs-Lisp mode.  It finds
  262. the sexp before point, reads it as a Lisp expression, evaluates it, and
  263. prints the value in the echo area.  It is sometimes useful to type in an
  264. expression and then, with point still after it, type `C-x C-e'.
  265.  
  266.    If `C-M-x' or `C-x C-e' are given a numeric argument, they print the
  267. value by inserting it into the current buffer at point, rather than in
  268. the echo area.  The argument value does not matter.
  269.  
  270.    The most general command for evaluating Lisp expressions from a
  271. buffer is `eval-region'.  `M-x eval-region' parses the text of the
  272. region as one or more Lisp expressions, evaluating them one by one.
  273. `M-x eval-current-buffer' is similar, but it evaluates the entire
  274. buffer.  This is a reasonable way to install the contents of a file of
  275. Lisp code that you are just ready to test.  After finding and fixing a
  276. bug, use `C-M-x' on each function that you change, to keep the Lisp
  277. world in step with the source file.
  278.  
  279. 
  280. File: xemacs.info,  Node: Lisp Debug,  Next: Lisp Interaction,  Prev: Lisp Eval,  Up: Running
  281.  
  282. The Emacs-Lisp Debugger
  283. =======================
  284.  
  285.    XEmacs contains a debugger for Lisp programs executing inside it.
  286. This debugger is normally not used; many commands frequently get Lisp
  287. errors when invoked in inappropriate contexts (such as `C-f' at the end
  288. of the buffer) and it would be unpleasant to enter a special debugging
  289. mode in this case.  When you want to make Lisp errors invoke the
  290. debugger, you must set the variable `debug-on-error' to non-`nil'.
  291. Quitting with `C-g' is not considered an error, and `debug-on-error'
  292. has no effect on the handling of `C-g'.  However, if you set
  293. `debug-on-quit' to be non-`nil', `C-g' will invoke the debugger.  This
  294. can be useful for debugging an infinite loop; type `C-g' once the loop
  295. has had time to reach its steady state.  `debug-on-quit' has no effect
  296. on errors.
  297.  
  298.    You can make Emacs enter the debugger when a specified function is
  299. called or at a particular place in Lisp code.  Use `M-x debug-on-entry'
  300. with argument FUN-NAME to have Emacs enter the debugger as soon as
  301. FUN-NAME is called. Use `M-x cancel-debug-on-entry' to make the
  302. function stop entering the debugger when called.  (Redefining the
  303. function also does this.)  To enter the debugger from some other place
  304. in Lisp code, you must insert the expression `(debug)' there and
  305. install the changed code with `C-M-x'.  *Note Lisp Eval::.
  306.  
  307.    When the debugger is entered, it displays the previously selected
  308. buffer in one window and a buffer named `*Backtrace*' in another
  309. window.  The backtrace buffer contains one line for each level of Lisp
  310. function execution currently going on.  At the beginning of the buffer
  311. is a message describing the reason that the debugger was invoked, for
  312. example, an error message if it was invoked due to an error.
  313.  
  314.    The backtrace buffer is read-only and is in Backtrace mode, a special
  315. major mode in which letters are defined as debugger commands.  The
  316. usual Emacs editing commands are available; you can switch windows to
  317. examine the buffer that was being edited at the time of the error, and
  318. you can switch buffers, visit files, and perform any other editing
  319. operations.  However, the debugger is a recursive editing level (*note
  320. Recursive Edit::.); it is a good idea to return to the backtrace buffer
  321. and explictly exit the debugger when you don't want to use it any more.
  322. Exiting the debugger kills the backtrace buffer.
  323.  
  324.    The contents of the backtrace buffer show you the functions that are
  325. executing and the arguments that were given to them.  It also allows you
  326. to specify a stack frame by moving point to the line describing that
  327. frame.  The frame whose line point is on is considered the "current
  328. frame".  Some of the debugger commands operate on the current frame.
  329. Debugger commands are mainly used for stepping through code one
  330. expression at a time.  Here is a list of them:
  331.  
  332. `c'
  333.      Exit the debugger and continue execution.  In most cases,
  334.      execution of the program continues as if the debugger had never
  335.      been entered (aside from the effect of any variables or data
  336.      structures you may have changed while inside the debugger).  This
  337.      includes entry to the debugger due to function entry or exit,
  338.      explicit invocation, and quitting or certain errors.  Most errors
  339.      cannot be continued; trying to continue an error usually causes
  340.      the same error to occur again.
  341.  
  342. `d'
  343.      Continue execution, but enter the debugger the next time a Lisp
  344.      function is called.  This allows you to step through the
  345.      subexpressions of an expression, and see what the subexpressions
  346.      do and what values they compute.
  347.  
  348.      When you enter the debugger this way, Emacs flags the stack frame
  349.      for the function call from which you entered.  The same function
  350.      is then called when you exit the frame.  To cancel this flag, use
  351.      `u'.
  352.  
  353. `b'
  354.      Set up to enter the debugger when the current frame is exited.
  355.      Frames that invoke the debugger on exit are flagged with stars.
  356.  
  357. `u'
  358.      Don't enter the debugger when the current frame is exited.  This
  359.      cancels a `b' command on a frame.
  360.  
  361. `e'
  362.      Read a Lisp expression in the minibuffer, evaluate it, and print
  363.      the value in the echo area.  This is equivalent to the command
  364.      `M-ESC', except that `e' is not normally disabled like `M-ESC'.
  365.  
  366. `q'
  367.      Terminate the program being debugged; return to top-level Emacs
  368.      command execution.
  369.  
  370.      If the debugger was entered due to a `C-g' but you really want to
  371.      quit, not to debug, use the `q' command.
  372.  
  373. `r'
  374.      Return a value from the debugger.  The value is computed by
  375.      reading an expression with the minibuffer and evaluating it.
  376.  
  377.      The value returned by the debugger makes a difference when the
  378.      debugger was invoked due to exit from a Lisp call frame (as
  379.      requested with `b'); then the value specified in the `r' command
  380.      is used as the value of that frame.
  381.  
  382.      The debugger's return value also matters with many errors.  For
  383.      example, `wrong-type-argument' errors will use the debugger's
  384.      return value instead of the invalid argument; `no-catch' errors
  385.      will use the debugger value as a throw tag instead of the tag that
  386.      was not found.  If an error was signaled by calling the Lisp
  387.      function `signal', the debugger's return value is returned as the
  388.      value of `signal'.
  389.  
  390. 
  391. File: xemacs.info,  Node: Lisp Interaction,  Next: External Lisp,  Prev: Lisp Debug,  Up: Running
  392.  
  393. Lisp Interaction Buffers
  394. ========================
  395.  
  396.    The buffer `*scratch*', which is selected when Emacs starts up, is
  397. provided for evaluating Lisp expressions interactively inside Emacs.
  398. Both the expressions you evaluate and their output goes in the buffer.
  399.  
  400.    The `*scratch*' buffer's major mode is Lisp Interaction mode, which
  401. is the same as Emacs-Lisp mode except for one command, LFD.  In
  402. Emacs-Lisp mode, LFD is an indentation command.  In Lisp Interaction
  403. mode, LFD is bound to `eval-print-last-sexp'.  This function reads the
  404. Lisp expression before point, evaluates it, and inserts the value in
  405. printed representation before point.
  406.  
  407.    The way to use the `*scratch*' buffer is to insert Lisp expressions
  408. at the end, ending each one with LFD so that it will be evaluated.  The
  409. result is a complete typescript of the expressions you have evaluated
  410. and their values.
  411.  
  412.    The rationale for this feature is that Emacs must have a buffer when
  413. it starts up, but that buffer is not useful for editing files since a
  414. new buffer is made for every file that you visit.  The Lisp interpreter
  415. typescript is the most useful thing I can think of for the initial
  416. buffer to do.  `M-x lisp-interaction-mode' will put any buffer in Lisp
  417. Interaction mode.
  418.  
  419. 
  420. File: xemacs.info,  Node: External Lisp,  Prev: Lisp Interaction,  Up: Running
  421.  
  422. Running an External Lisp
  423. ========================
  424.  
  425.    Emacs has facilities for running programs in other Lisp systems.
  426. You can run a Lisp process as an inferior of Emacs, and pass
  427. expressions to it to be evaluated.  You can also pass changed function
  428. definitions directly from the Emacs buffers in which you edit the Lisp
  429. programs to the inferior Lisp process.
  430.  
  431.    To run an inferior Lisp process, type `M-x run-lisp'.  This runs the
  432. program named `lisp', the same program you would run by typing `lisp'
  433. as a shell command, with both input and output going through an Emacs
  434. buffer named `*lisp*'.  In other words, any "terminal output" from Lisp
  435. will go into the buffer, advancing point, and any "terminal input" for
  436. Lisp comes from text in the buffer.  To give input to Lisp, go to the
  437. end of the buffer and type the input, terminated by RET.  The `*lisp*'
  438. buffer is in Inferior Lisp mode, which has all the special
  439. characteristics of Lisp mode and Shell mode (*note Shell Mode::.).
  440.  
  441.    Use Lisp mode to run the source files of programs in external Lisps.
  442. You can select this mode with `M-x lisp-mode'.  It is used automatically
  443. for files whose names end in `.l' or `.lisp', as most Lisp systems
  444. usually expect.
  445.  
  446.    When you edit a function in a Lisp program you are running, the
  447. easiest way to send the changed definition to the inferior Lisp process
  448. is the key `C-M-x'.  In Lisp mode, this key runs the function
  449. `lisp-send-defun', which finds the defun around or following point and
  450. sends it as input to the Lisp process.  (Emacs can send input to any
  451. inferior process regardless of what buffer is current.)
  452.  
  453.    Contrast the meanings of `C-M-x' in Lisp mode (for editing programs
  454. to be run in another Lisp system) and Emacs-Lisp mode (for editing Lisp
  455. programs to be run in Emacs): in both modes it has the effect of
  456. installing the function definition that point is in, but the way of
  457. doing so is different according to where the relevant Lisp environment
  458. is found.  *Note Lisp Modes::.
  459.  
  460. 
  461. File: xemacs.info,  Node: Abbrevs,  Next: Picture,  Prev: Running,  Up: Top
  462.  
  463. Abbrevs
  464. *******
  465.  
  466.    An "abbrev" is a word which "expands" into some different text.
  467. Abbrevs are defined by the user to expand in specific ways.  For
  468. example, you might define `foo' as an abbrev expanding to `find outer
  469. otter'.  With this abbrev defined, you would be able to get `find outer
  470. otter ' into the buffer by typing `f o o SPC'.
  471.  
  472.    Abbrevs expand only when Abbrev mode (a minor mode) is enabled.
  473. Disabling Abbrev mode does not cause abbrev definitions to be discarded,
  474. but they do not expand until Abbrev mode is enabled again.  The command
  475. `M-x abbrev-mode' toggles Abbrev mode; with a numeric argument, it
  476. turns Abbrev mode on if the argument is positive, off otherwise.  *Note
  477. Minor Modes::.  `abbrev-mode' is also a variable; Abbrev mode is on
  478. when the variable is non-`nil'.  The variable `abbrev-mode'
  479. automatically becomes local to the current buffer when it is set.
  480.  
  481.    Abbrev definitions can be "mode-specific"--active only in one major
  482. mode.  Abbrevs can also have "global" definitions that are active in
  483. all major modes.  The same abbrev can have a global definition and
  484. various mode-specific definitions for different major modes.  A
  485. mode-specific definition for the current major mode overrides a global
  486. definition.
  487.  
  488.    You can define Abbrevs interactively during an editing session.  You
  489. can also save lists of abbrev definitions in files and reload them in
  490. later sessions.  Some users keep extensive lists of abbrevs that they
  491. load in every session.
  492.  
  493.    A second kind of abbreviation facility is called the "dynamic
  494. expansion".  Dynamic abbrev expansion happens only when you give an
  495. explicit command and the result of the expansion depends only on the
  496. current contents of the buffer.  *Note Dynamic Abbrevs::.
  497.  
  498. * Menu:
  499.  
  500. * Defining Abbrevs::  Defining an abbrev, so it will expand when typed.
  501. * Expanding Abbrevs:: Controlling expansion: prefixes, canceling expansion.
  502. * Editing Abbrevs::   Viewing or editing the entire list of defined abbrevs.
  503. * Saving Abbrevs::    Saving the entire list of abbrevs for another session.
  504. * Dynamic Abbrevs::   Abbreviations for words already in the buffer.
  505.  
  506. 
  507. File: xemacs.info,  Node: Defining Abbrevs,  Next: Expanding Abbrevs,  Prev: Abbrevs,  Up: Abbrevs
  508.  
  509. Defining Abbrevs
  510. ================
  511.  
  512. `C-x a g'
  513.      Define an abbrev to expand into some text before point
  514.      (`add-global-abbrev').
  515.  
  516. `C-x a l'
  517.      Similar, but define an abbrev available only in the current major
  518.      mode (`add-mode-abbrev').
  519.  
  520. `C-x a i g'
  521.      Define a word in the buffer as an abbrev
  522.      (`inverse-add-global-abbrev').
  523.  
  524. `C-x a i l'
  525.      Define a word in the buffer as a mode-specific abbrev
  526.      (`inverse-add-mode-abbrev').
  527.  
  528. `M-x kill-all-abbrevs'
  529.      After this command, no abbrev definitions remain in effect.
  530.  
  531.    The usual way to define an abbrev is to enter the text you want the
  532. abbrev to expand to, position point after it, and type `C-x a g'
  533. (`add-global-abbrev').  This reads the abbrev itself using the
  534. minibuffer, and then defines it as an abbrev for one or more words
  535. before point.  Use a numeric argument to say how many words before point
  536. should be taken as the expansion.  For example, to define the abbrev
  537. `foo' as in the example above, insert the text `find outer otter', then
  538. type
  539. `C-u 3 C-x a g f o o RET'.
  540.  
  541.    An argument of zero to `C-x a g' means to use the contents of the
  542. region as the expansion of the abbrev being defined.
  543.  
  544.    The command `C-x a l' (`add-mode-abbrev') is similar, but defines a
  545. mode-specific abbrev.  Mode-specific abbrevs are active only in a
  546. particular major mode.  `C-x a l' defines an abbrev for the major mode
  547. in effect at the time `C-x a l' is typed.  The arguments work the same
  548. way they do for `C-x a g'.
  549.  
  550.    If the text of an abbrev you want is already in the buffer instead of
  551. the expansion, use command `C-x a i g' (`inverse-add-global-abbrev')
  552. instead of `C-x a g', or use `C-x a i l' (`inverse-add-mode-abbrev')
  553. instead of `C-x a l'.  These commands are called "inverse" because they
  554. invert the meaning of the argument found in the buffer and the argument
  555. read using the minibuffer.
  556.  
  557.    To change the definition of an abbrev, just add the new definition.
  558. You will be asked to confirm if the abbrev has a prior definition.  To
  559. remove an abbrev definition, give a negative argument to `C-x a g' or
  560. `C-x a l'.  You must choose the command to specify whether to kill a
  561. global definition or a mode-specific definition for the current mode,
  562. since those two definitions are independent for one abbrev.
  563.  
  564.    `M-x kill-all-abbrevs' removes all existing abbrev definitions.
  565.  
  566. 
  567. File: xemacs.info,  Node: Expanding Abbrevs,  Next: Editing Abbrevs,  Prev: Defining Abbrevs,  Up: Abbrevs
  568.  
  569. Controlling Abbrev Expansion
  570. ============================
  571.  
  572.    An abbrev expands whenever it is in a buffer just before point and
  573. you type a self-inserting punctuation character (SPC, comma, etc.).
  574. Most often an abbrev is used by inserting the abbrev followed by
  575. punctuation.
  576.  
  577.    Abbrev expansion preserves case; thus, `foo' expands into `find
  578. outer otter', `Foo' into `Find outer otter', and `FOO' into `FIND OUTER
  579. OTTER' or `Find Outer Otter' according to the variable
  580. `abbrev-all-caps' (a non-`nil' value chooses the first of the two
  581. expansions).
  582.  
  583.    Two commands are available to control abbrev expansion:
  584.  
  585. `M-''
  586.      Separate a prefix from a following abbrev to be expanded
  587.      (`abbrev-prefix-mark').
  588.  
  589. `C-x a e'
  590.      Expand the abbrev before point (`expand-abbrev').  This is
  591.      effective even when Abbrev mode is not enabled.
  592.  
  593. `M-x unexpand-abbrev'
  594.      Undo last abbrev expansion.
  595.  
  596. `M-x expand-region-abbrevs'
  597.      Expand some or all abbrevs found in the region.
  598.  
  599.    You may wish to expand an abbrev with a prefix attached.  For
  600. example, if `cnst' expands into `construction', you may want to use it
  601. to enter `reconstruction'.  It does not work to type `recnst', because
  602. that is not necessarily a defined abbrev.  Instead, you can use the
  603. command `M-'' (`abbrev-prefix-mark') between the prefix `re' and the
  604. abbrev `cnst'.  First, insert `re'.  Then type `M-''; this inserts a
  605. minus sign in the buffer to indicate that it has done its work.  Then
  606. insert the abbrev `cnst'.  The buffer now contains `re-cnst'.  Now
  607. insert a punctuation character to expand the abbrev `cnst' into
  608. `construction'.  The minus sign is deleted at this point by `M-''.  The
  609. resulting text is the desired `reconstruction'.
  610.  
  611.    If you actually want the text of the abbrev in the buffer, rather
  612. than its expansion, insert the following punctuation with `C-q'.  Thus,
  613. `foo C-q -' leaves `foo-' in the buffer.
  614.  
  615.    If you expand an abbrev by mistake, you can undo the expansion
  616. (replace the expansion by the original abbrev text) with `M-x
  617. unexpand-abbrev'.  You can also use `C-_' (`undo') to undo the
  618. expansion; but that will first undo the insertion of the punctuation
  619. character.
  620.  
  621.    `M-x expand-region-abbrevs' searches through the region for defined
  622. abbrevs, and  offers to replace each one it finds with its expansion.
  623. This command is useful if you have typed text using abbrevs but forgot
  624. to turn on Abbrev mode first.  It may also be useful together with a
  625. special set of abbrev definitions for making several global
  626. replacements at once.  The command is effective even if Abbrev mode is
  627. not enabled.
  628.  
  629. 
  630. File: xemacs.info,  Node: Editing Abbrevs,  Next: Saving Abbrevs,  Prev: Expanding Abbrevs,  Up: Abbrevs
  631.  
  632. Examining and Editing Abbrevs
  633. =============================
  634.  
  635. `M-x list-abbrevs'
  636.      Print a list of all abbrev definitions.
  637.  
  638. `M-x edit-abbrevs'
  639.      Edit a list of abbrevs; you can add, alter, or remove definitions.
  640.  
  641.    The output from `M-x list-abbrevs' looks like this:
  642.  
  643.      (lisp-mode-abbrev-table)
  644.      "dk"           0    "define-key"
  645.      (global-abbrev-table)
  646.      "dfn"           0    "definition"
  647.  
  648. (Some blank lines of no semantic significance, and some other abbrev
  649. tables, have been omitted.)
  650.  
  651.    A line containing a name in parentheses is the header for abbrevs in
  652. a particular abbrev table; `global-abbrev-table' contains all the global
  653. abbrevs, and the other abbrev tables that are named after major modes
  654. contain the mode-specific abbrevs.
  655.  
  656.    Within each abbrev table, each non-blank line defines one abbrev.
  657. The word at the beginning is the abbrev.  The number that appears is
  658. the number of times the abbrev has been expanded.  Emacs keeps track of
  659. this to help you see which abbrevs you actually use, in case you want
  660. to eliminate those that you don't use often.  The string at the end of
  661. the line is the expansion.
  662.  
  663.    `M-x edit-abbrevs' allows you to add, change or kill abbrev
  664. definitions by editing a list of them in an Emacs buffer.  The list has
  665. the format described above.  The buffer of abbrevs is called
  666. `*Abbrevs*', and is in Edit-Abbrevs mode.  This mode redefines the key
  667. `C-c C-c' to install the abbrev definitions as specified in the buffer.
  668. The  `edit-abbrevs-redefine' command does this.  Any abbrevs not
  669. described in the buffer are eliminated when this is done.
  670.  
  671.    `edit-abbrevs' is actually the same as `list-abbrevs', except that
  672. it selects the buffer `*Abbrevs*' whereas `list-abbrevs' merely
  673. displays it in another window.
  674.  
  675. 
  676. File: xemacs.info,  Node: Saving Abbrevs,  Next: Dynamic Abbrevs,  Prev: Editing Abbrevs,  Up: Abbrevs
  677.  
  678. Saving Abbrevs
  679. ==============
  680.  
  681.    These commands allow you to keep abbrev definitions between editing
  682. sessions.
  683.  
  684. `M-x write-abbrev-file'
  685.      Write a file describing all defined abbrevs.
  686.  
  687. `M-x read-abbrev-file'
  688.      Read such an abbrev file and define abbrevs as specified there.
  689.  
  690. `M-x quietly-read-abbrev-file'
  691.      Similar, but do not display a message about what is going on.
  692.  
  693. `M-x define-abbrevs'
  694.      Define abbrevs from buffer.
  695.  
  696. `M-x insert-abbrevs'
  697.      Insert all abbrevs and their expansions into the buffer.
  698.  
  699.    Use `M-x write-abbrev-file' to save abbrev definitions for use in a
  700. later session.  The command reads a file name using the minibuffer and
  701. writes a description of all current abbrev definitions into the
  702. specified file.  The text stored in the file looks like the output of
  703. `M-x list-abbrevs'.
  704.  
  705.    `M-x read-abbrev-file' prompts for a file name using the minibuffer
  706. and reads the specified file, defining abbrevs according to its
  707. contents.  `M-x quietly-read-abbrev-file' is the same but does not
  708. display a message in the echo area; it is actually useful primarily in
  709. the `.emacs' file.  If you give an empty argument to either of these
  710. functions, the file name Emacs uses is the value of the variable
  711. `abbrev-file-name', which is by default `"~/.abbrev_defs"'.
  712.  
  713.    Emacs offers to save abbrevs automatically if you have changed any of
  714. them, whenever it offers to save all files (for `C-x s' or `C-x C-c').
  715. Set the variable `save-abbrevs' to `nil' to inhibit this feature.
  716.  
  717.    The commands `M-x insert-abbrevs' and `M-x define-abbrevs' are
  718. similar to the previous commands but work on text in an Emacs buffer.
  719. `M-x insert-abbrevs' inserts text into the current buffer before point,
  720. describing all current abbrev definitions; `M-x define-abbrevs' parses
  721. the entire current buffer and defines abbrevs accordingly.
  722.  
  723. 
  724. File: xemacs.info,  Node: Dynamic Abbrevs,  Prev: Saving Abbrevs,  Up: Abbrevs
  725.  
  726. Dynamic Abbrev Expansion
  727. ========================
  728.  
  729.    The abbrev facility described above operates automatically as you
  730. insert text, but all abbrevs must be defined explicitly.  By contrast,
  731. "dynamic abbrevs" allow the meanings of abbrevs to be determined
  732. automatically from the contents of the buffer, but dynamic abbrev
  733. expansion happens only when you request it explicitly.
  734.  
  735. `M-/'
  736.      Expand the word in the buffer before point as a "dynamic abbrev",
  737.      by searching in the buffer for words starting with that
  738.      abbreviation (`dabbrev-expand').
  739.  
  740.    For example, if the buffer contains `does this follow ' and you type
  741. `f o M-/', the effect is to insert `follow' because that is the last
  742. word in the buffer that starts with `fo'.  A numeric argument to `M-/'
  743. says to take the second, third, etc. distinct expansion found looking
  744. backward from point.  Repeating `M-/' searches for an alternative
  745. expansion by looking farther back.  After the entire buffer before
  746. point has been considered, the buffer after point is searched.
  747.  
  748.    Dynamic abbrev expansion is completely independent of Abbrev mode;
  749. the expansion of a word with `M-/' is completely independent of whether
  750. it has a definition as an ordinary abbrev.
  751.  
  752. 
  753. File: xemacs.info,  Node: Picture,  Next: Sending Mail,  Prev: Abbrevs,  Up: Top
  754.  
  755. Editing Pictures
  756. ****************
  757.  
  758.    If you want to create a picture made out of text characters (for
  759. example, a picture of the division of a register into fields, as a
  760. comment in a program), use the command `edit-picture' to enter Picture
  761. mode.
  762.  
  763.    In Picture mode, editing is based on the "quarter-plane" model of
  764. text.  In this model, the text characters lie studded on an area that
  765. stretches infinitely far to the right and downward.  The concept of the
  766. end of a line does not exist in this model; the most you can say is
  767. where the last non-blank character on the line is found.
  768.  
  769.    Of course, Emacs really always considers text as a sequence of
  770. characters, and lines really do have ends.  But in Picture mode most
  771. frequently-used keys are rebound to commands that simulate the
  772. quarter-plane model of text.  They do this by inserting spaces or by
  773. converting tabs to spaces.
  774.  
  775.    Most of the basic editing commands of Emacs are redefined by Picture
  776. mode to do essentially the same thing but in a quarter-plane way.  In
  777. addition, Picture mode defines various keys starting with the `C-c'
  778. prefix to run special picture editing commands.
  779.  
  780.    One of these keys, `C-c C-c', is pretty important.  Often a picture
  781. is part of a larger file that is usually edited in some other major
  782. mode.  `M-x edit-picture' records the name of the previous major mode.
  783. You can then use the `C-c C-c' command (`picture-mode-exit') to restore
  784. that mode.  `C-c C-c' also deletes spaces from the ends of lines,
  785. unless you give it a numeric argument.
  786.  
  787.    The commands used in Picture mode all work in other modes (provided
  788. the `picture' library is loaded), but are only  bound to keys in
  789. Picture mode.  Note that the descriptions below talk of moving "one
  790. column" and so on, but all the picture mode commands handle numeric
  791. arguments as their normal equivalents do.
  792.  
  793.    Turning on Picture mode calls the value of the variable
  794. `picture-mode-hook' as a function, with no arguments, if that value
  795. exists and is non-`nil'.
  796.  
  797. * Menu:
  798.  
  799. * Basic Picture::         Basic concepts and simple commands of Picture Mode.
  800. * Insert in Picture::     Controlling direction of cursor motion
  801.                            after "self-inserting" characters.
  802. * Tabs in Picture::       Various features for tab stops and indentation.
  803. * Rectangles in Picture:: Clearing and superimposing rectangles.
  804.  
  805. 
  806. File: xemacs.info,  Node: Basic Picture,  Next: Insert in Picture,  Prev: Picture,  Up: Picture
  807.  
  808. Basic Editing in Picture Mode
  809. =============================
  810.  
  811.    Most keys do the same thing in Picture mode that they usually do,
  812. but do it in a quarter-plane style.  For example, `C-f' is rebound to
  813. run `picture-forward-column', which moves point one column to the
  814. right, by inserting a space if necessary, so that the actual end of the
  815. line makes no difference.  `C-b' is rebound to run
  816. `picture-backward-column', which always moves point left one column,
  817. converting a tab to multiple spaces if necessary.  `C-n' and `C-p' are
  818. rebound to run `picture-move-down' and `picture-move-up', which can
  819. either insert spaces or convert tabs as necessary to make sure that
  820. point stays in exactly the same column.  `C-e' runs
  821. `picture-end-of-line', which moves to after the last non-blank
  822. character on the line.  There was no need to change `C-a', as the choice
  823. of screen model does not affect beginnings of lines.
  824.  
  825.    Insertion of text is adapted to the quarter-plane screen model
  826. through the use of Overwrite mode (*note Minor Modes::.).
  827. Self-inserting characters replace existing text, column by column,
  828. rather than pushing existing text to the right.  RET runs
  829. `picture-newline', which just moves to the beginning of the following
  830. line so that new text will replace that line.
  831.  
  832.    Text is erased instead of deleted and killed.  DEL
  833. (`picture-backward-clear-column') replaces the preceding character with
  834. a space rather than removing it.  `C-d' (`picture-clear-column') does
  835. the same in a forward direction.  `C-k' (`picture-clear-line') really
  836. kills the contents of lines, but never removes the newlines from a
  837. buffer.
  838.  
  839.    To do actual insertion, you must use special commands.  `C-o'
  840. (`picture-open-line') creates a blank line, but does so after the
  841. current line; it never splits a line.  `C-M-o', `split-line', makes
  842. sense in Picture mode, so it remains unchanged.  LFD
  843. (`picture-duplicate-line') inserts another line with the same contents
  844. below the current line.
  845.  
  846.    To actually delete parts of the picture, use `C-w', or with `C-c
  847. C-d' (which is defined as `delete-char', as `C-d' is in other modes),
  848. or with one of the picture rectangle commands (*note Rectangles in
  849. Picture::.).
  850.  
  851. 
  852. File: xemacs.info,  Node: Insert in Picture,  Next: Tabs in Picture,  Prev: Basic Picture,  Up: Picture
  853.  
  854. Controlling Motion After Insert
  855. ===============================
  856.  
  857.    Since "self-inserting" characters just overwrite and move point in
  858. Picture mode, there is no essential restriction on how point should be
  859. moved.  Normally point moves right, but you can specify any of the eight
  860. orthogonal or diagonal directions for motion after a "self-inserting"
  861. character.  This is useful for drawing lines in the buffer.
  862.  
  863. `C-c <'
  864.      Move left after insertion (`picture-movement-left').
  865.  
  866. `C-c >'
  867.      Move right after insertion (`picture-movement-right').
  868.  
  869. `C-c ^'
  870.      Move up after insertion (`picture-movement-up').
  871.  
  872. `C-c .'
  873.      Move down after insertion (`picture-movement-down').
  874.  
  875. `C-c `'
  876.      Move up and left ("northwest") after insertion
  877.      (`picture-movement-nw').
  878.  
  879. `C-c ''
  880.      Move up and right ("northeast") after insertion
  881.      (`picture-movement-ne').
  882.  
  883. `C-c /'
  884.      Move down and left ("southwest") after insertion
  885.      (`picture-movement-sw').
  886.  
  887. `C-c \'
  888.      Move down and right ("southeast") after insertion
  889.      (`picture-movement-se').
  890.  
  891.    Two motion commands move based on the current Picture insertion
  892. direction.  The command `C-c C-f' (`picture-motion') moves in the same
  893. direction as motion after "insertion" currently does, while `C-c C-b'
  894. (`picture-motion-reverse') moves in the opposite direction.
  895.  
  896. 
  897. File: xemacs.info,  Node: Tabs in Picture,  Next: Rectangles in Picture,  Prev: Insert in Picture,  Up: Picture
  898.  
  899. Picture Mode Tabs
  900. =================
  901.  
  902.    Two kinds of tab-like action are provided in Picture mode.
  903. Context-based tabbing is done with `M-TAB' (`picture-tab-search').
  904. With no argument, it moves to a point underneath the next "interesting"
  905. character that follows whitespace in the previous non-blank line.
  906. "Next" here means "appearing at a horizontal position greater than the
  907. one point starts out at".  With an argument, as in `C-u M-TAB', the
  908. command moves to the next such interesting character in the current
  909. line.  `M-TAB' does not change the text; it only moves point.
  910. "Interesting" characters are defined by the variable
  911. `picture-tab-chars', which contains a string of characters considered
  912. interesting.  Its default value is `"!-~"'.
  913.  
  914.    TAB itself runs `picture-tab', which operates based on the current
  915. tab stop settings; it is the Picture mode equivalent of
  916. `tab-to-tab-stop'.  Without arguments it just moves point, but with a
  917. numeric argument it clears the text that it moves over.
  918.  
  919.    The context-based and tab-stop-based forms of tabbing are brought
  920. together by the command `C-c TAB' (`picture-set-tab-stops'.) This
  921. command sets the tab stops to the positions which `M-TAB' would
  922. consider significant in the current line.  If you use this command with
  923. TAB, you can get the effect of context-based tabbing.  But `M-TAB' is
  924. more convenient in the cases where it is sufficient.
  925.  
  926. 
  927. File: xemacs.info,  Node: Rectangles in Picture,  Prev: Tabs in Picture,  Up: Picture
  928.  
  929. Picture Mode Rectangle Commands
  930. ===============================
  931.  
  932.    Picture mode defines commands for working on rectangular pieces of
  933. the text in ways that fit with the quarter-plane model.  The standard
  934. rectangle commands may also be useful (*note Rectangles::.).
  935.  
  936. `C-c C-k'
  937.      Clear out the region-rectangle (`picture-clear-rectangle').  With
  938.      argument, kill it.
  939.  
  940. `C-c C-w R'
  941.      Similar but save rectangle contents in register R first
  942.      (`picture-clear-rectangle-to-register').
  943.  
  944. `C-c C-y'
  945.      Copy last killed rectangle into the buffer by overwriting, with
  946.      upper left corner at point (`picture-yank-rectangle').  With
  947.      argument, insert instead.
  948.  
  949. `C-c C-x R'
  950.      Similar, but use the rectangle in register R
  951.      (`picture-yank-rectangle-from-register').
  952.  
  953.    The picture rectangle commands `C-c C-k' (`picture-clear-rectangle')
  954. and `C-c C-w' (`picture-clear-rectangle-to-register') differ from the
  955. standard rectangle commands in that they normally clear the rectangle
  956. instead of deleting it; this is analogous with the way `C-d' is changed
  957. in Picture mode.
  958.  
  959.    However, deletion of rectangles can be useful in Picture mode, so
  960. these commands delete the rectangle if given a numeric argument.
  961.  
  962.    The Picture mode commands for yanking rectangles differ from the
  963. standard ones in overwriting instead of inserting.  This is the same
  964. way that Picture mode insertion of other text is different from other
  965. modes.  `C-c C-y' (`picture-yank-rectangle') inserts (by overwriting)
  966. the rectangle that was most recently killed, while `C-c C-x'
  967. (`picture-yank-rectangle-from-register') does for the rectangle found
  968. in a specified register.
  969.  
  970.    Since most region commands in Picture mode operate on rectangles,
  971. when you select a region of text with the mouse in Picture mode, it is
  972. highlighted as a rectangle.
  973.  
  974. 
  975. File: xemacs.info,  Node: Sending Mail,  Next: Reading Mail,  Prev: Picture,  Up: Top
  976.  
  977. Sending Mail
  978. ************
  979.  
  980.    To send a message in Emacs, start by typing the command (`C-x m') to
  981. select and initialize the `*mail*' buffer.  You can then edit the text
  982. and headers of the message in the mail buffer, and type the command
  983. (`C-c C-c') to send the message.
  984.  
  985. `C-x m'
  986.      Begin composing a message to send (`mail').
  987.  
  988. `C-x 4 m'
  989.      Likewise, but display the message in another window
  990.      (`mail-other-window').
  991.  
  992. `C-c C-c'
  993.      In Mail mode, send the message and switch to another buffer
  994.      (`mail-send-and-exit').
  995.  
  996.    The command `C-x m' (`mail') selects a buffer named `*mail*' and
  997. initializes it with the skeleton of an outgoing message.  `C-x 4 m'
  998. (`mail-other-window') selects the `*mail*' buffer in a different
  999. window, leaving the previous current buffer visible.
  1000.  
  1001.    Because the buffer for mail composition is an ordinary Emacs buffer,
  1002. you can switch to other buffers while in the middle of composing mail,
  1003. and switch back later (or never).  If you use the `C-x m' command again
  1004. when you have been composing another message but have not sent it, a
  1005. new mail buffer will be created; in this way, you can compose multiple
  1006. messages at once.  You can switch back to and complete an unsent
  1007. message by using the normal buffer selection mechanisms.
  1008.  
  1009.    `C-u C-x m' is another way to switch back to a message in progress:
  1010. it will search for an existing, unsent mail message buffer and select
  1011. it.
  1012.  
  1013. * Menu:
  1014.  
  1015. * Format: Mail Format.    Format of the mail being composed.
  1016. * Headers: Mail Headers.  Details of allowed mail header fields.
  1017. * Mode: Mail Mode.        Special commands for editing mail being composed.
  1018.  
  1019. 
  1020. File: xemacs.info,  Node: Mail Format,  Next: Mail Headers,  Prev: Sending Mail,  Up: Sending Mail
  1021.  
  1022. The Format of the Mail Buffer
  1023. =============================
  1024.  
  1025.    In addition to the "text" or contents, a message has "header
  1026. fields", which say who sent it, when, to whom, why, and so on.  Some
  1027. header fields, such as the date and sender, are created automatically
  1028. after the message is sent.  Others, such as the recipient names, must
  1029. be specified by you in order to send the message properly.
  1030.  
  1031.    Mail mode provides a few commands to help you edit some header
  1032. fields, and some are preinitialized in the buffer automatically at
  1033. times.  You can insert or edit any header fields using ordinary editing
  1034. commands.
  1035.  
  1036.    The line in the buffer that says:
  1037.  
  1038.      --text follows this line--
  1039.  
  1040. is a special delimiter that separates the headers you have specified
  1041. from the text.  Whatever follows this line is the text of the message;
  1042. the headers precede it.  The delimiter line itself does not appear in
  1043. the message actually sent.  The text used for the delimiter line is
  1044. controlled by the variable `mail-header-separator'.
  1045.  
  1046.    Here is an example of what the headers and text in the `*mail*'
  1047. buffer might look like.
  1048.  
  1049.      To: rms@mc
  1050.      CC: mly@mc, rg@oz
  1051.      Subject: The XEmacs Reference Manual
  1052.      --Text follows this line--
  1053.      Please ignore this message.
  1054.  
  1055.